<?php if (!defined('SHUIPF_VERSION')) exit(); ?>






<Admintemplate file="Common/DatabaseHead"/>





<body>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>数据库工具</em></a><span>|</span><a href='./?g=Admin&m=Database&a=index' ><em>数据库导出</em></a><span>|</span><a href='./?g=Admin&m=Database&a=import' class="on"><em>数据库导入</em></a>    
		</div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style><div class="pad_10">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
		<div class="explain-col">
		请选择要操作的数据库备份 
		<!--<select name="pdo_select" onchange="show_tbl(this)"><option value='' >请选择数据链接池</option><option value="default" selected>phpcms[localhost]</option></select>		<input type="submit" value="查看" class="button" name="dosubmit">
		-->
		</div>
		</td>
		</tr>
    </tbody>
</table>
<div class="table-list">
<form method="post" id="myform" name="myform" >
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="10%"  align="left"><input type="checkbox" value="" id="check_box" onclick="selectall('filenames[]');"></th>
            <th width="15%">文件夹名称</th>
            <th width="15%">备份大小</th>
            <th width="15%">备份时间</th>
            <th width="15%">卷号</th>
            <th width="15%">操作</th>
            </tr>
        </thead>
    <tbody>
    
	<volist name="list" id="dirlist">
	
	<tr>
	<td width="10%">
<input type="checkbox" name="filenames[]" value="{$dirlist.dirname}" id="sql_phpcms" boxid="sql_phpcms">
	</td>
	<td  width="15%" align="center">{$dirlist.dirname}</td>
	<td width="15%" align="center">{$dirlist.totalsize}</td>
	<td width="15%" align="center">{$dirlist.dirtime}</td>
	<td width="15%" align="center">{$dirlist.fileqty}</td>
	<td width="15%" align="center">
	<if condition="$dirlist['downpath'] neq '' ">
	<a href="./data/{$dirlist['downpath']}">下载备份</a>
	</if>
	<a href="javascript:confirmurl('./?g=Admin&m=Database&pdoname=default&a=import&pre={$dirlist.dirname}&dosubmit=1', '确认恢复数据库吗?')">数据恢复</a>
	</td>
	</tr>
    </volist>

	
	
    </tbody>
    </table>
<div class="btn">
<label for="check_box">全选/取消</label> 
<input type="submit" class="button" name="dosubmit" value="删除备份文件" onclick="document.myform.action='./?g=Admin&m=Database&a=delete&pdoname=default';return confirm('bakup_del_confirm')"/>
</div>
</form>
</div>
</div>

</body>
</html>
<script type="text/javascript">
<!--
function show_tbl(obj) {
	//var pdoname = $(obj).val();
	//location.href='?m=admin&c=database&a=import&pdoname='+pdoname+'&menuid='+914+'&pc_hash=sBVewG';
}
//-->
</script>
